<@override name="title">${action!}管理员</@override> <@override name="styles">
<link rel="stylesheet" type="text/css" href="${request.contextPath}/plugins/bootstrap/css/bootstrapValidator.min.css">
</@override> <@override name="content">
<div>
    <ul class="breadcrumb">
        <li><a href="#" id="navTitle">系统设置</a></li>
        <li><a href="./list">管理员管理</a></li>
        <li><a href="#">${action!}</a></li>
    </ul>
    <form class="form-horizontal" role="form" id="editForm">
        <input type="hidden" name="id" value="${(target.id)!}">
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-10">
                <input type="text" maxlength="32" class="form-control" name="name" placeholder="请输入姓名"
                    value="${(target.name)!}" required="required" data-bv-notempty-message="请输入姓名"
                    data-bv-stringlength-max="32" data-bv-stringlength-message="姓名长度不能大于32">
            </div>
        </div>
        <div class="form-group">
            <label for="account" class="col-sm-2 control-label">账号</label>
            <div class="col-sm-10">
                <input type="text" maxlength="32" class="form-control" name="account" placeholder="请输入登录账号"
                    value="${(target.account)!}" required="required" data-bv-notempty-message="请输入登录账号"
                    data-bv-stringlength-max="32" data-bv-stringlength-message="登录账号长度不能大于32">
            </div>
        </div>
        <div class="form-group">
            <label for="password" class="col-sm-2 control-label">密码</label>
            <div class="col-sm-10">
                <input type="password" maxlength="32" class="form-control" name="password" value="${(target.password)!}"
                    required="required" data-bv-notempty-message="请输入登录密码" data-bv-stringlength-max="32"
                    data-bv-stringlength-message="登录密码长度不能大于32" data-bv-stringlength-min="6">
            </div>
        </div>
        <div class="form-group">
            <label for="role" class="col-sm-2 control-label">角色</label>
            <div class="col-sm-10">
                <select class="form-control" name="roleId" required="required" data-bv-notempty-message="请选择角色">
                    <option value="">-请选择角色-</option>
                    <#list roleList as role>
                    <option value="${role.id}" ${((role.id==target.roleId)?string('selected', ''))!''}>${role.name}</option>
                    </#list>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label for="master" class="col-sm-2 control-label">状态</label>
            <div class="col-sm-10">
                <label class="radio-inline"> <input type="radio" name="deleted" value="1"${((target.deleted)?string('checked',''))!''}>
                    <span>禁用</span>
                </label> <label class="radio-inline"> <input type="radio" name="deleted" value="0"${((target.deleted)?string('','checked'))!'checked'}>
                    <span>启用</span>
                </label>
            </div>
        </div>
        <#if target??>
        <div class="form-group">
            <label for="modifyPassword" class="col-sm-2 control-label">修改密码</label>
            <div class="col-sm-10">
                <label class="radio-inline"> <input type="radio" name="modifyPassword" value="0"
                    checked="checked"> <span>不修改</span>
                </label> <label class="radio-inline"> <input type="radio" name="modifyPassword" value="1"> <span>修改</span>
                </label>
            </div>
        </div>
        </#if>
        <div class="form-group">
            <div class="col-sm-offset-6">
                <button type="button" class="btn btn-success js-submit">保存</button>
            </div>
        </div>
    </form>
</div>
</@override><@override name="scripts">
<script type="text/javascript" src="${request.contextPath}/plugins/bootstrap/js/bootstrapValidator.min.js"></script>
<script type="text/javascript" src="${request.contextPath}/js/bg/manager.edit.js"></script>
</@override> <@extends name="../base.html" />
